package com.anolesoft.yr.mbus.base.service;

import com.anolesoft.yr.mbus.base.dto.BaseAddressBookDTO;

import java.util.List;
import java.util.Optional;

/**
 * @author zhj
 * @date 2020/9/12 17:24
 */
public interface BaseAddressBookService {
    int create(BaseAddressBookDTO baseAddressBookDTO);

    int modify(BaseAddressBookDTO baseAddressBookDTO);

    int remove(String id);

    int removeBatch(List<String> ids);

    List<BaseAddressBookDTO> selectAll();

    Optional<BaseAddressBookDTO> selectOneById(String id);

    List<BaseAddressBookDTO> selectListByTargetUid(String targetUid);
}
